Ext.define('cp.view.ui.DecoratorFormSearch',{
    extend: 'Ext.window.Window',
    alias: 'widget.decoratorFormSearch',
    
    closable: true,
    resizable: false,
    minimizable: true,
    
    initComponent: function(){
        
        this.title = this.aTitle;
        this.items = this.aForm;
        
        this.buttons = [
            {text:'Limpiar', action:'clear'},
            {text:'Buscar', action:'find', iconCls: 'ico-search'}
        ];
        
        this.callParent(arguments);
    },
    submitForm: function(){
        this.getComponent(0).submitForm();
    },
    clearForm: function(){
        this.getComponent(0).clearForm();
    }
});